package com.ruoyi.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.app.domain.AppBanners;

import java.util.List;

/**
 * bannerService接口
 *
 * @author jiang
 * @date 2024-11-12
 */
public interface IAppBannersService extends IService<AppBanners> {
    /**
     * 查询banner
     *
     * @param id banner主键
     * @return banner
     */
    public AppBanners selectAppBannersById(Long id);

    /**
     * 查询banner列表
     *
     * @param appBanners banner
     * @return banner集合
     */
    public List<AppBanners> selectAppBannersList(AppBanners appBanners);

    /**
     * 新增banner
     *
     * @param appBanners banner
     * @return 结果
     */
    public int insertAppBanners(AppBanners appBanners);

    /**
     * 修改banner
     *
     * @param appBanners banner
     * @return 结果
     */
    public int updateAppBanners(AppBanners appBanners);

    /**
     * 批量删除banner
     *
     * @param ids 需要删除的banner主键集合
     * @return 结果
     */
    public int deleteAppBannersByIds(Long[] ids);

    /**
     * 删除banner信息
     *
     * @param id banner主键
     * @return 结果
     */
    public int deleteAppBannersById(Long id);

    List<AppBanners> getFirstList();
}

